home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-06 | 6.4 KB | 127 lines | [TEXT/MWII] |
- About Quoter…
-
- Quoter is a White Knight 11.x RCMD designed to insert a writer's name or
- initials at the start of every line of text copied to the Clipboard,
- just like those Fido guys do it. This text can then be pasted back to WK
- to show authorship of the original quotation. For instance, if this
- block of text were a message by myself, I could select it in White
- Knight, copy it to the Clipboard, tell Quoter to use the initials PJ and
- paste the following back to WK:
-
- PJ> Quoter is a White Knight 11.x RCMD designed to insert a writer's
- PJ> name or initials at the start of every line of text copied to the
- PJ> Clipboard, just like those Fido guys do it. This text can then be
- PJ> pasted back to WK to show authorship of the original quotation.
- PJ> For instance, if this block of text were a message by myself, I
- PJ> could select it in White Knight, copy it to the Clipboard, tell
- PJ> Quoter to use the initials PJ and paste the following back to WK:
-
- If White Knight variable F1 = 0 or F1 = 2, then Quoter automatically
- reflows text to match whatever line length limit you enter into the WK
- variable L1%.
-
- A sample commented Procedure file using Quoter (which has a RCMD ID of
- 250) looks like this:
-
- ( ------------------------------------------------------------------- )
- ( )
- ( Quoter 1.1 )
- ( An RCMD for White Knight 11 by Pete Johnson )
- ( )
- ( Use: select text to be quoted, copy it to the Clipboard and run )
- ( Quoter. Tell Quoter what name or initials to use as the quoting )
- ( source and hit return or click OK. Quoter will prepend the initials )
- ( you entered to every line of selected text. )
- ( )
- ( Version 1.1 of Quoter works in one of three modes, determined by )
- ( the value of F1: )
- ( )
- ( If F1 = 0, then Quoter will reformat as necessary to preserve a )
- ( maximum line length of L1 characters. Lines beginning with spaces, )
- ( periods,tabs, colons and semicolons are presumed to have special )
- ( formatting and are left intact except for the insertion of the )
- ( quoting identifier at the start of each line. )
- ( )
- ( If F1 = 1, Quoter will insert the quoting identifier, otherwise )
- ( preserving the original format. )
- ( )
- ( If F1 = 2, Quoter will reformat as necessary to preserve a maximum )
- ( line length of L1 characters, regardless of leading spaces or other )
- ( special characters. This is a "less smart" version of mode 0. )
- ( )
- ( Read "About Quoter…" for more info. )
-
- LET EQUAL F1%,0
-
- ( Variable L1 contains the value for maximum line length to output if )
- ( F1 = 0 or F1 = 2, otherwise L1 is ignored and the BBS must handle )
- ( lines which are too long. )
-
- LET EQUAL L1%,72
-
- ( String P1 contains the prompt character used after the initials or )
- ( name you specify. Note that it should contain at least one space at )
- ( its end to separate it from the quoted matter. )
-
- COPYINTO P1$,>
-
- ( The 1 in the next command tells White Knight to leave its windows )
- ( intact -- Quoter just uses a modal dialog. The 250 is the resource )
- ( ID of the Quoter RCMD, which is embedded in this text file. )
-
- RCMD 1,250
-
- ( ------------------------------------------------------------------- )
-
- Bugs and/or Features
-
- In its F1 = 0 mode, Quoter is now mildly sensitive to text formatting.
- It respects two carriage returns in a row as an "empty" line, to which
- it prepends the entered name or initials. If a line begins with a space,
- tab, period, colon or semicolon, Quoter assumes that it's specially
- formatted and doesn't modify it, apart from inserting quoting initials.
-
- If you don't want to be so delicate, the F1 = 2 mode is for you. It's
- identical to the F1 = 0 mode, but it gobbles up leading indentation.
-
- If you want to quote a passage with short lines intact, try Quoter in
- its F1 = 1 mode. This tells Quoter to simply insert the name or initials
- before each line of the text on the Clipboard without additional
- formatting. In this case, if a line exceeds the maximum line length
- allowed on the BBS where you're posting the message, you may get some
- ugly breaks, but if the lines are short this will work fine.
-
- If this these options seem useful, you might want to compile several
- versions of Quoter: Quoter F.PROC for most formatting, Quoter I.PROC for
- the insert mode and Quoter S.PROC for the "squish" mode. The mode you're
- in is displayed in Quoter's dialog box: Format means that text will be
- reflowed; Insert means that formatting will be preserved; Squish means
- that text will be reflowed regardless of leading spaces or special
- characters.
-
- In complicated instances, you may need to do some formatting by "hand",
- or on a line by line basis with Quoter. You can also use Quoter on short
- selected passages when you want to mix quotes from different sources
- (though Quoter can handle quotes of up to 32,000 characters).
-
- Whit Knight string P1$ holds the prompt character which is appended to
- the name or initials you enter in the Quoter dialog box. Most quoters
- that I've seen use the '>' character followed by one or more spaces to
- identify quotes, and this is the way I've set Quoter up in its procedure
- file. You can customize this -- adding more spaces or altering the >
- character to something else -- by changing the value of P1$ in the
- procedure.
-
- If all of these options are more trouble than you want to take, don't
- worry. The included procedure file sets Quoter up in I believe is its
- most useful form.
-
- Quoter is free, though I adamantly retain copyright to it and prohibit
- anyone using it in a "for sale" package without my explicit permission.
- Many thanks to Bob Daniel and Doug Acker for making public an RCMD
- shell program, which I used. And thanks to Scott Watson for enabling
- RCMDs in White Knight.
-
- Pete Johnson
- Nov. 16, 1989
-